GUI Help > Other > mainWindow

mainWindow
int handle=mainWindow()

Description:
Retrieves the window handle of the main DarkBASIC Pro window. Use the result with createGadgetFromWindow() to create a gadget which you can then manipulate using the other gadget commands.

Return Value:
See Above

Parameters:
Remarks:
It is faster to use one call to setGadget than seperate calls to resizeGadget and moveGadget.

See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)